package cq.zhcqk.axst.entity;

import java.io.Serializable;
import java.util.List;

/*****************************************************
 * author:      wz
 * email:       wangzhong0116@foxmail.com
 * version:     1.0
 * date:        2017/1/10 17:03
 * description:
 *****************************************************/

public class DataResult implements Serializable {

    /**
     * error : false
     * results : [{"_id":1,"title":"今日特价","foodList":[{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"}],"type":"Android","desc":""},{"_id":2,"title":"新品推荐","foodList":[{"ID":101,"foodName":"小鲜肉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"小鲜肉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"小鲜肉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"小鲜肉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"小鲜肉","foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""},{"_id":3,"title":"精选水果","foodList":[{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"海南香蕉","foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""},{"_id":4,"title":"鲜切果盘","foodList":[{"ID":"sdfasdfasdf","foodName":101,"foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":"sdfasdfasdf","foodName":101,"foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":"sdfasdfasdf","foodName":101,"foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":"sdfasdfasdf","foodName":101,"foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""},{"_id":5,"title":"精品干过","foodList":[{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"金钩大蜜女","foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""},{"_id":6,"title":"精品零食","foodList":[{"ID":101,"foodName":"三只老鼠","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"三只老鼠","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"三只老鼠","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"三只老鼠","foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""},{"_id":7,"title":"礼品专区","foodList":[{"ID":101,"foodName":"进店1则","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"进店1则","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"进店1则","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"进店1则","foodPrice":101,"salesCount":101,"imageUrl":101},{"ID":101,"foodName":"进店1则","foodPrice":101,"salesCount":101,"imageUrl":101}],"type":"Android","desc":""}]
     */

//    private boolean error;
            private String msg;
            private int code;
    private List<ResultsBean> data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    //    public boolean isError() {
//        return error;
//    }
//
//    public void setError(boolean error) {
//        this.error = error;
//    }

    public List<ResultsBean> getResults() {
        return data;
    }

    public void setResults(List<ResultsBean> results) {
        this.data = results;
    }

    public static class ResultsBean {
        /**
         * _id : 1
         * title : 今日特价
         * foodList : [{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"},{"ID":101,"foodName":"巧克力","foodPrice":22.5,"salesCount":101,"imageUrl":"1"}]
         * type : Android
         * desc :
         */

//        private int _id;
//        private String title;
//        private String type;
        private dicdishestypeDO dicdishestypeDO;
        private List<FoodListBean> details;

        public ResultsBean.dicdishestypeDO getDicdishestypeDO() {
            return dicdishestypeDO;
        }

        public void setDicdishestypeDO(ResultsBean.dicdishestypeDO dicdishestypeDO) {
            this.dicdishestypeDO = dicdishestypeDO;
        }

        public List<FoodListBean> getDetails() {
            return details;
        }

        public void setDetails(List<FoodListBean> details) {
            this.details = details;
        }

        public static class dicdishestypeDO{
            private int id;
            private String type;
            private String remark;
            private String createdate;
            private String updatedate;
            private String deleteflag;
            private String var01;
            private String var02;
            private String var03;
            private String var04;
            private String var05;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public String getCreatedate() {
                return createdate;
            }

            public void setCreatedate(String createdate) {
                this.createdate = createdate;
            }

            public String getUpdatedate() {
                return updatedate;
            }

            public void setUpdatedate(String updatedate) {
                this.updatedate = updatedate;
            }

            public String getDeleteflag() {
                return deleteflag;
            }

            public void setDeleteflag(String deleteflag) {
                this.deleteflag = deleteflag;
            }

            public String getVar01() {
                return var01;
            }

            public void setVar01(String var01) {
                this.var01 = var01;
            }

            public String getVar02() {
                return var02;
            }

            public void setVar02(String var02) {
                this.var02 = var02;
            }

            public String getVar03() {
                return var03;
            }

            public void setVar03(String var03) {
                this.var03 = var03;
            }

            public String getVar04() {
                return var04;
            }

            public void setVar04(String var04) {
                this.var04 = var04;
            }

            public String getVar05() {
                return var05;
            }

            public void setVar05(String var05) {
                this.var05 = var05;
            }
        }

        public static class FoodListBean {
            /**
             *  "id":6,
             "dishname":"青椒炒蛋",
             "dishdesc":"青椒炒蛋",
             "dishpic":"/files/1f65d983-2185-4480-bb45-e4be0c87d059.jpg",
             "price":5,
             "remark":"",
             "createdate":null,
             "updatedate":null,
             "deleteflag":"0",
             "var01":"3",
             "var02":null,
             "var03":null,
             "var04":null,
             "var05":null,
             "createid":null
             */

            private int id;
            private String dishname;
            private String dishdesc;
            private String dishpic;
            private int salesCount;
            private double price;
            private String remark;
            private String createdate;
            private String updatedate;
            private String deleteflag;
            private String var01;
            private String var02;
            private String var03;
            private String var04;
            private String var05;
            private String createid;

            public String getDishpic() {
                return dishpic;
            }

            public void setDishpic(String dishpic) {
                this.dishpic = dishpic;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getDishname() {
                return dishname;
            }

            public void setDishname(String dishname) {
                this.dishname = dishname;
            }

            public String getDishdesc() {
                return dishdesc;
            }

            public void setDishdesc(String dishdesc) {
                this.dishdesc = dishdesc;
            }

            public int getSalesCount() {
                return salesCount;
            }

            public void setSalesCount(int salesCount) {
                this.salesCount = salesCount;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public String getCreatedate() {
                return createdate;
            }

            public void setCreatedate(String createdate) {
                this.createdate = createdate;
            }

            public String getUpdatedate() {
                return updatedate;
            }

            public void setUpdatedate(String updatedate) {
                this.updatedate = updatedate;
            }

            public String getDeleteflag() {
                return deleteflag;
            }

            public void setDeleteflag(String deleteflag) {
                this.deleteflag = deleteflag;
            }

            public String getVar01() {
                return var01;
            }

            public void setVar01(String var01) {
                this.var01 = var01;
            }

            public String getVar02() {
                return var02;
            }

            public void setVar02(String var02) {
                this.var02 = var02;
            }

            public String getVar03() {
                return var03;
            }

            public void setVar03(String var03) {
                this.var03 = var03;
            }

            public String getVar04() {
                return var04;
            }

            public void setVar04(String var04) {
                this.var04 = var04;
            }

            public String getVar05() {
                return var05;
            }

            public void setVar05(String var05) {
                this.var05 = var05;
            }

            public String getCreateid() {
                return createid;
            }

            public void setCreateid(String createid) {
                this.createid = createid;
            }
        }
    }
}
